<%@page import="tx.bjdacp.model.*" %>
<%@ page contentType="application/msexcel;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>

<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%
   response.setHeader("Content-disposition","attachment; filename=data.xls");
%>



	<table width="100%"  border="1" cellspacing="0">


			  <tr>
				<th sortColumn="accept_code" ><%=GspInfo.ALIAS_ACCEPT_CODE%></th>
				<th sortColumn="accept_date" ><%=GspInfo.ALIAS_ACCEPT_DATE%></th>
				<th sortColumn="unit_name" ><%=GspInfo.ALIAS_UNIT_NAME%></th>
				<th sortColumn="cert_type" ><%=GspInfo.ALIAS_CERT_TYPE%></th>
				<th sortColumn="cert_kind" ><%=GspInfo.ALIAS_CERT_KIND%></th>
				<th sortColumn="cert_result" ><%=GspInfo.ALIAS_CERT_RESULT%></th>
				<th sortColumn="cert_bug_item" ><%=GspInfo.ALIAS_CERT_BUG_ITEM%></th>
				<th sortColumn="gsp_code" ><%=GspInfo.ALIAS_GSP_CODE%></th>
				<th sortColumn="gsp_give_date" ><%=GspInfo.ALIAS_GSP_GIVE_DATE%></th>
				<th sortColumn="gsp_expiry_date" ><%=GspInfo.ALIAS_GSP_EXPIRY_DATE%></th>
				<th sortColumn="send_date" ><%=GspInfo.ALIAS_SEND_DATE%></th>
				<th sortColumn="quarter" ><%=GspInfo.ALIAS_QUARTER%></th>

			  </tr>

		  <tbody>
		  	  <c:forEach items="${page.result}" var="item" varStatus="status">

			  <tr >

				<td><c:out value='${item.acceptCode}'/>&nbsp;</td>
				<td><c:out value='${item.acceptDateString}'/>&nbsp;</td>
				<td><c:out value='${item.unitName}'/>&nbsp;</td>
				<td><c:out value='${item.certType}'/>&nbsp;</td>
				<td><c:out value='${item.certKind}'/>&nbsp;</td>
				<td><c:out value='${item.certResult}'/>&nbsp;</td>
				<td><c:out value='${item.certBugItem}'/>&nbsp;</td>
				<td><c:out value='${item.gspCode}'/>&nbsp;</td>
				<td><c:out value='${item.gspGiveDateString}'/>&nbsp;</td>
				<td><c:out value='${item.gspExpiryDateString}'/>&nbsp;</td>
				<td><c:out value='${item.sendDateString}'/>&nbsp;</td>
				<td><c:out value='${item.quarter}'/>&nbsp;</td>
			  </tr>

		  	  </c:forEach>
		  </tbody>
		</table>
